package com.mlk.engUser.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.mlk.engUser.po.EngUserRemainVerify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author trekxu
 * @since 2019-06-26
 */
@Mapper
public interface EngUserRemainVerifyMapper extends BaseMapper<EngUserRemainVerify> {

    List<EngUserRemainVerify> selectForPage(EngUserRemainVerify bean);

    /**
     * 查询一个用户只允许存在一个申请单
     * @param openId
     * @return
     */
    int getCountOfOpenIdWithStatusInit(@Param("openId") String openId);

    /**
     * 查询所有待处理的内容
     * @return
     */
    List<EngUserRemainVerify> selectAwaitVrify();
}
